<?php
/**
 * 列表页
 */


require_once(ROOT.'/class/xml.class.php');

$cate_id = $_GET['cateid'];
$xml = new Xml();
$tmp =  $xml->getXmlHeader($domain);

$tmp .= "   <entry>\n";
$tmp .= "       <title>按日下载次数排序</title>\n";
$tmp .= "       <id>urn:cnstanza:com</id>\n";
$tmp .= "       <link type=\"application/atom+xml\" href=\"index.php?order=day_down&amp;cateid={$cate_id}\"/>\n";
$tmp .= "       <link rel=\"x-stanza-cover-image-thumbnail\" type=\"image/png\" href=\"theme/order.png\" />\n";
$tmp .= "   </entry>\n";
$tmp .= "   \n";

$tmp .= "   <entry>\n";
$tmp .= "       <title>按周下载次数排序</title>\n";
$tmp .= "       <id>urn:cnstanza:com</id>\n";
$tmp .= "       <link type=\"application/atom+xml\" href=\"index.php?order=week_down&amp;cateid={$cate_id}\"/>\n";
$tmp .= "       <link rel=\"x-stanza-cover-image-thumbnail\" type=\"image/png\" href=\"theme/order.png\" />\n";
$tmp .= "   </entry>\n";
$tmp .= "   \n";

$tmp .= "   <entry>\n";
$tmp .= "       <title>按月下载次数排序</title>\n";
$tmp .= "       <id>urn:cnstanza:com</id>\n";
$tmp .= "       <link type=\"application/atom+xml\" href=\"index.php?order=month_down&amp;cateid={$cate_id}\"/>\n";
$tmp .= "       <link rel=\"x-stanza-cover-image-thumbnail\" type=\"image/png\" href=\"theme/order.png\" />\n";
$tmp .= "   </entry>\n";
$tmp .= "   \n";

$tmp .= "   <entry>\n";
$tmp .= "       <title>按总下载次数排序</title>\n";
$tmp .= "       <id>urn:cnstanza:com</id>\n";
$tmp .= "       <link type=\"application/atom+xml\" href=\"index.php?order=down&amp;cateid={$cate_id}\"/>\n";
$tmp .= "       <link rel=\"x-stanza-cover-image-thumbnail\" type=\"image/png\" href=\"theme/order.png\" />\n";
$tmp .= "   </entry>\n";
$tmp .= "   \n";

$tmp .= "   <entry>\n";
$tmp .= "       <title>按添加时间排序</title>\n";
$tmp .= "       <id>urn:cnstanza:com</id>\n";
$tmp .= "       <link type=\"application/atom+xml\" href=\"index.php?order=created_at&amp;cateid={$cate_id}\"/>\n";
$tmp .= "       <link rel=\"x-stanza-cover-image-thumbnail\" type=\"image/png\" href=\"theme/order.png\" />\n";
$tmp .= "   </entry>\n";
$tmp .= "   \n";

$tmp .= $xml->getXmlFooter();

echo $tmp;